require 'examples/MouseBoxes'

class MouseBox
  def initialize sketch, opts = {}
    super sketch, opts do
      o = Hash[:sx => 0.4, :sy => 0.4, :sz => 0.4]
      box(o) { block { @tx = -1 } }
      box(o) { block { @tx = 1 } }
      box(o) { block { @ty = -1 } }
      box(o) { block { @ty = 1 } }
    end
  end
end
